import { useLoginUserStore } from '@/pinia/modules';

export const getLoginUserInfo = (): {
  loginUserUsername: string;
  loginUserName: string;
  loginUserWorkNo: string;
} => {
  const { loginUser } = useLoginUserStore();
  const loginUserUsername = loginUser.username as string;
  const loginUserName = loginUser.name as string;
  const loginUserWorkNo = loginUser.workNo as string;
  return { loginUserUsername, loginUserName, loginUserWorkNo };
};
